<%@page import="com.xnx3.j2ee.Global"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.xnx3.com/java_xnx3/xnx3_tld" prefix="x" %>
<jsp:include page="../../../iw/common/head.jsp">
    <jsp:param name="name" value="订单内商品列表"/>
</jsp:include>
<script src="/<%=Global.CACHE_FILE %>Order_state.js"></script>
<style>
    h2{
        padding-top: 12px;
        padding-bottom: 5px;
    }
</style>

<div style="margin-top: 10px; text-align: center;">
    <h2>订单信息</h2>
    <table class="layui-table iw_table"  style="color: black;font-size: 14px;">
        <tr>
            <th style="text-align:center;width:80px;">id</th>
            <th>${order.id}</th>
        </tr>
        <tr>
            <th style="text-align:center;width:80px;">订单号</th>
            <th>${order.no}</th>
        </tr>
        <tr>
            <th style="text-align:center;width:80px;">订单金额</th>
            <th>${order.totalMoney/100}元</th>
        </tr>
        <tr>
            <th style="text-align:center;width:80px;">应付金额</th>
            <th>${order.payMoney/100}元</th>
        </tr>
        <tr>
            <th style="text-align:center; width:80px;">订单状态</th>
            <th>
                <script type="text/javascript">document.write(state['${order['state']}']);</script>
            </th>
        </tr>
        <tr>
            <th style="text-align:center; width:80px;">备注</th>
            <th>${order.remark}</th>
        </tr>
    </table>

    <h2>配送信息</h2>
    <table class="layui-table iw_table"  style="color: black;font-size: 14px;">
        <tr>
            <th style="text-align:center; width:80px;">收货人</th>
            <th>${address.username}</th>
        </tr>
        <tr>
            <th style="text-align:center; width:80px;">联系电话</th>
            <th>${address.phone}</th>
        </tr>
        <tr>
            <th style="text-align:center; width:80px;">收货地址</th>
            <th>${address.address}</th>
        </tr>
        <tr>
            <th style="text-align:center; width:80px;">经纬度</th>
            <th>${address.longitude},${address.latitude}</th>
        </tr>
    </table>

    <h2>订单内商品</h2>
    <table class="layui-table iw_table" style="color: black;font-size: 14px;">
        <thead>
        <tr>
            <th style="text-align:center;">ID</th>
            <th style="text-align:center;">商品名字</th>
            <th style="text-align:center;">商品单价</th>
            <th style="text-align:center;">数量</th>
        </tr>
        </thead>
        <tbody id="tbody">
        <c:forEach var="item" items="${goodsList }">
            <tr>
                <td style="text-align:center;">${item.id }</td>
                <td style="text-align:center;">${item.title }</td>
                <td style="text-align:center;">${item.price/100}/${item.units }</td>
                <td style="text-align:center;">${item.number }</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>


</div>
<jsp:include page="../../../iw/common/foot.jsp"></jsp:include>